Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created a metadata rule to replace composed-jar attribute by jar. #802

Closed

Conversation

AlexanderBartash
Copy link

No description provided.

// }
// }
// }
//}
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created two versions, feel free to use whatever you like.

Copy link

}
}
}

implementation(
"com.redhat.devtools.intellij:intellij-common:${intellijCommonVersion}",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I just noticed another api which might work you can try:

implementation("com.redhat.devtools.intellij:intellij-common:${intellijCommonVersion}") {
        attributes {
            attribute(LibraryElements.LIBRARY_ELEMENTS_ATTRIBUTE, objects.named("composed-jar"))
        }
}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tested it in a different PR where I needed this: df398b4 Works super nicely. I'll add you as co-author to my PR. Thanks!

@sbouchet
Copy link
Collaborator

@AlexanderBartash whoo thanks for the PR !
we're currenlty migrating our old groovy builds to Kotlin, to be also able to target 2024.2 + .
see #780 with your patch in use

@adietish
Copy link
Collaborator

Using this in df398b4. Closing this PR.

@adietish adietish closed this Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants